package string.classwork;

public class objectDemo {
    public static void main(String[] args) {
        point p1=new point(100,200);
        point p2=new point(100,200);
        System.out.println(p1.toString());
        System.out.println(p2.toString());
        System.out.println(p1.equals(p2));

        StringBuilder s1=new StringBuilder("hello world");
        StringBuilder s2=new StringBuilder("hello world");
        System.out.println(s1.equals(s2));
        String s3=s1.toString();
        String s4=s2.toString();
        System.out.println(s3.equals(s4));
    }
}
